<?php

namespace app\Modules\Admin;

/**
 * admin module definition class
 */
class Module extends \yii\base\Module
{
    /**
     * @inheritdoc
     */
    public $controllerNamespace = 'app\Modules\Admin\controllers';

    public $layout = 'details';

    /**
     * @inheritdoc
     */
    public function init()
    {
        parent::init();
        //\Yii::configure($this, require(__DIR__ . '/config/web.php'));
        \Yii::$app->errorHandler->errorAction = 'admin/default/error';
        // custom initialization code goes here
    }
}
